

var storage = {
    kStorageLogination: "k.storage.oumooc.logination",
    kStorageLiveListPagination : 'k.storage.oumooc.livelist.pagination',
    kStorageVodListPagination : 'k.storage.oumooc.vodlist.pagination',
    kStorageCourseInfo : "k.storage.oumooc.course.info",
    kStorageNotifiesListPagination : 'k.storage.oumooc.schoolnotify.pagination',
    kStorageUserInfo: "k.storage.oumooc.userInfo",
    kStorageWsHost:"ws",
    

    setValue(key, value) {
        localStorage.setItem(key, value);
    },
    getValue(key) {
        return localStorage.getItem(key);
    },
    setObj(key,obj) {
        localStorage.setItem(key, JSON.stringify(obj));
    },
    getObj(key) {
        return JSON.parse(localStorage.getItem(key));
    },
    remove(key) {
        localStorage.removeItem(key)
    },
    removeAll() {
        localStorage.clear();
    }

}
export default storage;